package kr.or.javacafe.USCM.USCM303.service;

import java.util.List;

import kr.or.javacafe.USCM.USCM303.dao.USCM303DAO;
import kr.or.javacafe.common.exception.KmtcException;
import kr.or.javacafe.common.exception.KmtcRuntimeException;

public class USCM303ServiceImpl implements USCM303Service {
	private USCM303DAO uscm303DAO;
	//이미 Spring이 이 메소드를 통해 주입시킨다
	public void setUscm303DAO(USCM303DAO uscm303DAO){
		this.uscm303DAO = uscm303DAO;	
	}
	
	
	public List findBoardList() throws KmtcException
	{
		try
		{
			List objList = uscm303DAO.selectBoardList();
			
			return objList;
		}
		catch (RuntimeException ex)
		{
			throw new KmtcRuntimeException(ex);
		}
		catch (Exception ex)
		{
			throw new KmtcException(ex);
		}
	}
}
